import 'dart:ui';

import 'package:flutter/material.dart';
import 'package:ost_flutter_module/common/adapt.dart';
import 'package:ost_flutter_module/common/color.dart';

class StoreSectionHeaderWidget extends StatelessWidget {
  final String text;

  const StoreSectionHeaderWidget({Key key, this.text}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Padding(
      padding: EdgeInsets.only(left: Adapt.px(10)),
      child: Row(
        children: [
          Container(
            width: Adapt.px(4),
            height: Adapt.px(20),
            decoration: BoxDecoration(
              borderRadius: BorderRadius.circular(Adapt.px(1)),
              color: colorFACD33,
            ),
          ),
          SizedBox(width: Adapt.px(10)),
          Text(
            text ?? '',
            style: TextStyle(
              color: color303030,
              fontSize: 18,
              fontWeight: FontWeight.bold,
            ),
          ),
        ],
      ),
    );
  }
}
